<p-dataTable [value]="scheduleDatas" [responsive]="true" id="malfunctionTable">

    <p-column selectionMode="multiple" ></p-column>
    <p-column field="sid" header="服务单号" [sortable]="true">
        <ng-template let-data="rowData" pTemplate="operator">
            <span (click)="onOperate(data)" class="ui-cursor-point">{{data.sid}}</span>
        </ng-template>
    </p-column>
    <p-column field="creator" header="受理人" [sortable]="true"></p-column>
    <p-column field="submitter" header="请求人" [sortable]="true"></p-column>
    <p-column field="occurrence_time" header="请求时间" [sortable]="true"></p-column>
    <p-column field="type" header="服务类型" [sortable]="true"></p-column>
    <p-column field="title" header="标题" [sortable]="true"></p-column>
    <p-column field="status" header="状态" [sortable]="true"></p-column>
    <p-column field="acceptor" header="当前处理人" [sortable]="true"></p-column>
    <p-column field="color" header="操作" [style]="{'width':'18vw'}">
        <ng-template let-data="rowData" pTemplate="operator">
            <app-rfs-btn-accept [data]="data"></app-rfs-btn-accept>
            <app-rfs-btn-reject [data]="data"></app-rfs-btn-reject>
            <app-rfs-btn-assign [data]="data"></app-rfs-btn-assign>
            <app-rfs-btn-close [data]="data"></app-rfs-btn-close>
            <app-rfs-btn-deal [data]="data"></app-rfs-btn-deal>
            <app-rfs-btn-process [data]="data"></app-rfs-btn-process>
            <app-rfs-btn-delete [data]="data" (dataEmitter)="dataEmitter($event)"></app-rfs-btn-delete>
            <app-rfs-btn-edit [data]="data"></app-rfs-btn-edit>
            <app-rfs-btn-view [data]="data"></app-rfs-btn-view>
        </ng-template>
    </p-column>
    <ng-template pTemplate="emptymessage">
        当前没有数据
    </ng-template>
</p-dataTable>
<p-paginator rows="10" totalRecords="{{total}}" [rowsPerPageOptions]="[10,20,30]" pageLinkSize="3"  (onPageChange)="paginate($event)"></p-paginator>
<p-growl [(value)]="message"></p-growl>
